<?php

class ResolverTest extends UnitTestCase {

  var $m_resolver;
  var $m_dataPath;

  function setUp() {
    parent::setUp();
    $this->m_dataPath = TEST_DATA.'resolver/';
    $this->m_resolver =& new PicoIOCResolver($this->m_dataPath);
  }

  function tearDown() {
    $this->m_resolver = null;
    $this->m_dataPath = null;
    parent::tearDown();
  }
  
  function testLongPath() {
    $this->assertIdentical($this->m_resolver->resolv('foo'), $this->m_dataPath.'foo.inc.php');
  }
  
  function testShortPath() {
    $this->assertIdentical($this->m_resolver->resolv('bar'), $this->m_dataPath.'bar.inc');
  }
  
  function testNotFound() {
    $this->assertIdentical($this->m_resolver->resolv('buzz'), null);
  }
}
  

?>
